package com.ruoyi.radar.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.radar.domain.RadarSilo;
import com.ruoyi.radar.domain.RadarSiloReal;
import com.ruoyi.radar.service.RadarSiloRealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@CrossOrigin
@RestController
@RequestMapping("/radarReal")
public class RadarSiloRealController {

    @Autowired
    private RadarSiloRealService radarSiloRealService;

    /**
     * 获取料仓列表
     */
//    @PreAuthorize("@ss.hasPermi('radarSilo:silo:list')")
    @GetMapping("/list")
    public AjaxResult list(@RequestParam Map<String, Object> param)
    {
        List<RadarSiloReal> list = radarSiloRealService.selectSiloReal(param);
        return AjaxResult.success(list);
    }

}
